package com.spzx.product.api.domain;

import com.spzx.common.core.web.domain.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.Size;
import lombok.Data;

@Schema(description = "品牌类")
@Data
public class Brand extends BaseEntity {
    @Schema(description = "品牌名称")
    @NotEmpty(message = "品牌名称不能为空")
    @Size(min = 2 , max = 30 , message = "品牌名称必须在2~30位之间")
    private String name;
    @Schema(description = "品牌图标")
    @NotEmpty(message = "品牌图标不能为空")
    private String logo;
}
